#set(title='我的信息',menu='userinfo')
#@user_layout()
#define user_main()
	<h1 class="page-header">#(title)</h1>
	<div class="row">
     <div class="col-md-6 col-md-offset-3">
     	<form action="#(ctx)/user/saveuserinfo" method="post" enctype="multipart/form-data">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title">
						账号登录信息
					</h3>
				</div>
				<div class="panel-body">
					<div class="form-group">
						<label>邮箱地址(用于登录名)</label> <input type="email" name="email" value="#(user.email)" disabled="disabled"
							class="form-control" placeholder="请输入邮箱" required autofocus>
					</div>
				</div>
			</div>
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title">
						用户信息
					</h3>
				</div>
				<div class="panel-body">
					<div class="form-group">
						<label>姓名</label> <input type="text" name="name" value="#(user.name)"
							class="form-control" placeholder="请输入姓名" required>
					</div>
					<div class="form-group">
						<label>手机号码</label> <input type="text" name="mobile" value="#(user.mobile)"
							class="form-control" placeholder="请输入手机号码" required>
					</div>
					<div class="form-group">
						<label>收货地址</label> <input type="text" name="address" value="#(user.address)"
							class="form-control" placeholder="请输入详细地址(包括省、市、镇、街道、小区等 )" required>
					</div>
					<div class="form-group">
				    <label>身份证照片</label>
				      <input type="file" name="photo" placeholder="" accept="image/*">
			     	  <img src="#(uploadPah)#(user.photo)" class="img-responsive" alt="book image">
				  </div>
				</div>
			</div>
			<button class="btn btn-lg btn-primary btn-block" type="submit">保存</button>
			
	</form>
     </div>
     </div>
#end
